# $Id: PKGBUILD 66161 2012-02-23 02:22:10Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=pppusage
pkgver=0.2.5
pkgrel=5
pkgdesc="Utility to monitor pppd connections"
arch=(any)
url="http://www.jhweiss.de/software/pppusage.html"
license=("GPL")
depends=(perl ppp cron)
makedepends=()
backup=(etc/pppusagerc)
#source=(ftp://ftp.jhweiss.de/pub/users/weiss/pppusage/pppusage-$pkgver.tar.gz
source=(http://arch.p5n.pp.ru/~sergej/dl/2012/pppusage-$pkgver.tar.gz
        build-fix.patch)
md5sums=('7cf370d5b147ff084025234c43d01a45'
         '5f970f87088c767e3264b118f256b084')

build() {
  cd $srcdir/pppusage-$pkgver
  patch -Np1 <../build-fix.patch
  perl Makefile.PL
  make
  make DESTDIR=$pkgdir install
  rm $pkgdir/usr/lib/perl5/core_perl/perllocal.pod
  find $pkgdir -name '.packlist' -exec rm {} \;
}

